package com.jqr.activity.myschool.viewmodels

import androidx.annotation.UiThread
import androidx.lifecycle.ViewModel
import com.jqr.activity.myschool.https.ArticleRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class  MainViewModel @Inject constructor(
    repository: ArticleRepository,
) : ViewModel() {

    private  var isRefresh=false

    val  result=repository.getAllArticle(isRefresh)

    fun changeRefresh(refresh:Boolean){
        isRefresh=refresh
        System.out.println(isRefresh)
    }

}
